package com.diors.autocode.xml;

import java.util.List;

import javax.xml.bind.Unmarshaller;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Data类
 * @author	darren.ouyang <ouyang.darren@gmail.com>
 * @date	2013-10-21
 * @version 1.0
 * @copyright Copyright (c) 2013, darren.ouyang
 */
@XmlRootElement(name = "Models")
@XmlAccessorType(XmlAccessType.FIELD)
public class AutoXmlData 
{
	
	@XmlElement(name = "Model")
	private List<ModelModel> list;
	
	/**
	 * 加载xml后监听进入
	 * @param u
	 * @param parent
	 * @create	2013-9-16	darren.ouyang
	 */
	void afterUnmarshal(Unmarshaller u, Object parent)
	{
		XmlDataManager.log.info("loading AutoXmlData size:" + list.size());
	}

}
